package com.kantboot.system.user.exception;

import com.kantboot.util.common.exception.BaseException;

/**
 * 用来处理SystemUser模块的枚举异常
 */
public class SystemUserException {

    /**
     * 用户名已存在
     */
    public final static BaseException USERNAME_EXIST = BaseException.of("usernameExist","用户名已存在");

    /**
     * 用户名不存在
     */
    public final static BaseException USERNAME_NOt_EXIST = BaseException.of("usernameNotExist","用户名不存在");

    /**
     * 密码错误
     */
    public final static BaseException PASSWORD_ERROR = BaseException.of("passwordError","密码错误");

    /**
     * 用户不存在
     */
    public final static BaseException USER_NOT_EXIST = BaseException.of("userNotExist","用户不存在");

    /**
     * 用户已经拥有该角色
     */
    public final static BaseException USER_ALREADY_HAVE_ROLE = BaseException.of("userAlreadyHaveRole","用户已经拥有该角色");

    /**
     * 手机号不存在
     */
    public final static BaseException PHONE_NOT_EXIST = BaseException.of("phoneNotExist","手机号不存在");

    /**
     * 手机号已存在
     */
    public final static BaseException PHONE_EXIST = BaseException.of("phoneExist","手机号已存在");

    /**
     * 邮箱不存在
     */
    public final static BaseException EMAIL_NOT_EXIST = BaseException.of("emailNotExist","邮箱不存在");

    /**
     * 邮箱已存在
     */
    public final static BaseException EMAIL_EXIST = BaseException.of("emailExist","邮箱已存在");

    /**
     * 验证码错误
     */
    public final static BaseException VAR_CODE_ERROR = BaseException.of("varCodeError","验证码错误");

    /**
     * 未登录
     */
    public final static BaseException NOT_LOGIN = BaseException.of("notLogin","未登录");

    /**
     * 原密码错误
     */
    public final static BaseException OLD_PASSWORD_ERROR = BaseException.of("oldPasswordError","原密码错误");

    /**
     * 正在进行修改余额的操作
     */
    public final static BaseException CHANGING_BALANCE = BaseException.of("changingBalance","正在进行修改余额的操作");

    /**
     * 余额被锁定
     */
    public final static BaseException BALANCE_LOCK = new UserBalanceLockException();

    /**
     * 余额不足
     */
    public final static BaseException BALANCE_NOT_ENOUGH = new BalanceNotEnoughException();

}
